﻿using System;
using System.Xml.Serialization;
using EpiNEXT.Core.Fields.Properties;

namespace EpiNEXT.Core.Fields
{
    public abstract class DateField : FieldWithSeparatePrompt, IInputField
    {
        public DateField()
            : base()
        {
            InputFontSize = Constants.DEFAULT_INPUT_FONT_SIZE;
            PromptFontSize = Constants.DEFAULT_PROMPT_FONT_SIZE;
        }

        [XmlElement]
        public long? LowerBound { get; set; }

        [XmlElement]
        public long? UpperBound { get; set; }

        /// <summary>
        /// The .NET data type for this field
        /// </summary>
        [XmlIgnore]
        public override string DataType { get { return "System.DateTime"; } }
    }
}
